<!DOCTYPE html>
<html lang="zh-Hans-CN">
<head>
	<meta charset="UTF-8">
	<title>xml 导出数据</title>
</head>
<body>
	偶尔会用到哦~ 写了以后做参考~
	<script>
		var cm = document.querySelectorAll('tbody tr td');
		var layer = [];
		for (var i = 0; i < cm.length; i++) {
			var dm = cm[i].innerHTML;
			var dc = dm.replace(/<.*?>/ig, "");
			layer.push(dc);
		}
		console.log(layer);
	</script>
</body>
</html>
